<!doctype html>
<html>
<head>
    <title>DGPT4711 asm 1</title>
    <style>
        .container {
            display: flex;
            flex-wrap: wrap; 
            justify-content: space-between; 
            margin-bottom: 50px; 
        }
        .item {
            flex: 1 0 45%; 
            margin: 2.5%; 
            box-sizing: border-box; 
        }
        .item img {
            max-width: 100%; 
            height: auto; 
        }
        .home-button {
            position: fixed; 
            bottom: 20px; 
            right: 20px; 
            background-color: blue; 
            color: white; 
            text-decoration: none; 
            padding: 10px 20px; 
            border-radius: 5px; 
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
        }
        .home-button:hover {
            background-color: darkblue; 
        }
    </style>
</head>
<body>
    <h1>Character list</h1>
    <div class="container">
        {records}
        <div class="item">
            <p><a href="/travel/showme/{id}"><img src="/image/{img}" /></a></p>
            <p><a href="/travel/showme/{id}">{name}</a></p>
        </div>
        {/records}
    </div>
    <a href="/" class="home-button">Home</a>
</body>
</html>

<!-- <!doctype html>
<html>
<head>
    <title>DGPT4711 asm 1</title>
</head>
<body>
    <h1>Character list</h1>
    {records}
        <p>
            <a href="/travel/showme/{id}">
                <img src="{image_url}" alt="{name}" style="width:100px;height:auto;">
            </a>
        </p>
    {/records}
    <p><a href="/">Home</a></p>
</body>
</html> -->